﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fileUpLoadDemo.aspx.cs"
    Inherits="FileDownLoadDemo.fileUpLoadDemo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>文件上传Demo</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 500px; margin-left: 30%;">
        <center style="background-color: #bef189; border-color: Navy; border-width: 3px;
            margin-top: 100px;">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="right">
                        选择类别:
                    </td>
                    <td align="left">
                        <select id="selFileType" name="selFileType">
                            <option value="0">请选择文件类型</option>
                            <optgroup label="图片">
                                <option value="image/jpeg">JPEG</option>
                                <option value="image/gif">GIF</option>
                                <option value="image/bmp">BMP</option>
                                <option value="image/png">PNG</option>
                            </optgroup>
                            <optgroup label="Word">
                                <option value="application/msword">doc</option>
                                <option value="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
                                    docx</option>
                            </optgroup>
                            <optgroup label="PPT">
                                <option value="application/vnd.ms-powerpoint">ppt</option>
                                <option value="application/vnd.openxmlformats-officedocument.presentationml.presentation">
                                    pptx</option>
                            </optgroup>
                            <optgroup label="Execl">
                                <option value="application/vnd.ms-excel">xls</option>
                                <option value="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">xlsx</option>
                            </optgroup>
                            <optgroup label="压缩包">
                                <option value="application/x-rar-compressed">rar</option>
                                <option value="application/x-7z-compressed">7z</option>
                                <option value="application/zip">zip</option>
                            </optgroup>
                        </select>
                       <%-- <select id="WORK_BUSINESS_TYPE">
                            <option value="0">所有类型</option>
                            <optgroup label="外部业务类型">
                                <option value="1">类型一</option>
                                <option value="2">类型二</option>
                            </optgroup>
                            <optgroup label="内部业务类型">
                                <option value="3">类型三</option>
                                <option value="4">类型四</option>
                            </optgroup>
                        </select>--%>

                        <asp:HiddenField ID="HiddenSelFileType" runat="server"  />


                    </td>
                </tr>
                <tr>
                    <td align="right">
                        选择文件:
                    </td>
                    <td align="left">
                        <asp:FileUpload ID="upfile" runat="server" Width="351px" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <td align="center">
                        <asp:Button ID="btnFileUpLoad" runat="server" Text="文件上传" OnClick="btnFileUpLoad_Click" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <td align="center">
                        <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="false" />
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
